/**
 * Holds meta information to customize the behavior of Sentry's server-side event processing.
 **/
export interface DebugMeta {
  images?: Array<DebugImage>;
}

export type DebugImage = WasmDebugImage | SourceMapDebugImage | MachoDebugImage;

interface WasmDebugImage {
  type: 'wasm';
  debug_id: string;
  code_id?: string | null;
  code_file: string;
  debug_file?: string | null;
}

interface SourceMapDebugImage {
  type: 'sourcemap';
  code_file: string; // filename
  debug_id: string; // uuid
}

interface MachoDebugImage {
  type: 'macho';
  debug_id: string;
  image_addr: string;
  image_size?: number;
  code_file?: string;
}
